package com.weixing.mall.provider.model.dto;

import com.weixing.mall.provider.model.enums.WhetherEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author wx
 * @Date 2019/8/6 17:48
 * @Version 1.0
 */
@Data
@ApiModel(description = "商品买板")
public class BuySampleDto {
    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "商品名称")
    @NotNull(message = "商品名称不能为空")
    private String goodsName;
    @ApiModelProperty(value = "买板价格")
    @NotNull(message = "买板价格不能为空")
    private BigDecimal price;

    @ApiModelProperty(value = "买板售价")
    private BigDecimal sellingPrice;

    @ApiModelProperty(value = "买板颜色")
    @NotNull(message = "买板颜色不能为空")
    private String color;
    @ApiModelProperty(value = "买板尺码")
    @NotNull(message = "买板尺码不能为空")
    private String size;
    @ApiModelProperty(value = "商品款号")
    @NotNull(message = "商品款号不能为空")
    private String productSn;
    @ApiModelProperty(value = "买板货号")
    private String goodsSn;
    @NotNull(message = "买板材质不能为空")
    @ApiModelProperty(value = "买板材质")
    private String material;
    @ApiModelProperty(value = "商品图片")
    @NotNull(message = "商品图片不能为空")
    private String img;
    @ApiModelProperty(value = "供应商")
    private Long supplier;
    @ApiModelProperty(value = "是否拍照")
    private WhetherEnum isTakePhoto;
    @ApiModelProperty(value = "是否上架")
    private WhetherEnum isOnShelf;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "时间")
    private String createdTime;
}
